package com.yvchen.yc_system.module.qw.controller;

import com.yvchen.yc_system.module.qw.api.WQUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/wq")
public class WQController {
    @Autowired
    WQUtil wqUtil;

    @GetMapping("/token")
    public String getToken(){
        return wqUtil.getToken();
    }

    @GetMapping("/send")
    public String SendMessage(){
        wqUtil.sendToWxCp("17691272552");
        return "发送成功";
    }
}
